﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TImSdk
{
    public class FriendProfileItem
    {
        /// <summary>
        /// 修改好友备注
        /// </summary>
        [JsonProperty("friend_profile_item_remark")]
        public string Friend_Profile_Item_Remark { get; set; }
        /// <summary>
        /// 修改好友分组名称列表
        /// </summary>
        [JsonProperty("friend_profile_item_group_name_array")]
        public string[] Friend_Profile_Item_Group_Name_Array { get; set; }
        /// <summary>
        /// 自定义好友字段
        /// </summary>
        [JsonProperty("friend_profile_item_custom_string_array")]
        public List<FriendProfileCustemStringInfo> Friend_Profile_Item_Custom_String_Array { get; set; }

        public FriendProfileItem() { }

        public void UpdateRemark(string remark) {
            Friend_Profile_Item_Remark = remark;
        }

        public void UpdateGroupNameArray(string[] groupNameArray)
        {
            Friend_Profile_Item_Group_Name_Array = groupNameArray;
        }

        public void UpdateCustomStringArray(List<FriendProfileCustemStringInfo> customStringArray)
        {
            Friend_Profile_Item_Custom_String_Array = customStringArray;
        }
    }
}
